home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 2894 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.5 KB

  1. Path: news.rhrz.uni-bonn.de!zeus!fasten
  2. From: fasten@zeus.informatik.uni-bonn.de (Bernhard Fastenrath)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: OS features
  5. Date: 24 Jan 1996 20:35:57 GMT
  6. Organization: Universit"at Bonn, Informatik Abt. II, R"omerstr. 164, 53117 Bonn
  7. Message-ID: <4e657d$2db@news.rhrz.uni-bonn.de>
  8. References: <4aj1tc$39r@candelo.dpie.gov.au> <13213430@sourcery.han.de> <wfblanDL60p0.D0y@netcom.com> <1058.6591T492T1743@cycor.ca> <DLnqBB.DuD@focus-systems.on.ca> <4e442t$4ve@serpens.rhein.de>
  9. NNTP-Posting-Host: zeus.informatik.uni-bonn.de
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Michael van Elst (mlelstv@serpens.rhein.de) wrote:
  13. : wayne@focus-systems.on.ca (Wayne Fisher) writes:
  14.  
  15. <...>
  16. : >    - new programs' code and data would be protected from access by another
  17. : >      process unless explicitly allowed by the program.
  18.  
  19. : Kills close to all system functions. You had to write a completely new
  20. : AmigaOS.
  21.  
  22. Maybe not. Let's say (as you suggested earlier) that some subsystems
  23. (e.g. Intuition) have the permission to read and write any memory region.
  24. Intuition functions would have to check if the pointers received from
  25. process A point into A's memory and, of course, if they are consistent
  26. and don't corrupt Intuition's internal data when used (That's a good piece
  27. of work for the programmers and for Intuition at runtime but I guess it's
  28. possible).
  29. Programs which want to browse internal data structures of Intuition are
  30. either given permission or fail.
  31.  
  32. <...>
  33. : >"much more"? I don't think a few percentages is "much more".
  34.  
  35. : You forget that memory protection is nothing if you cannot protect
  36. : the system from invalid parameters to system functions. Most system
  37. : functions however use shared data structures.
  38.  
  39. How about this: Write access to a data structure shared between a process
  40. and Intutition marks the data structure as dirty and Intuition has to
  41. perform consistency checks again before using it.
  42.  
  43. : The whole concept of device drivers had to be changed.
  44. : BOOPSI is dead.
  45. : System hooks are dead.
  46.  
  47. Device drivers would have to be a subsystem with the license to kill
  48. (read/write everything). System hooks would be restricted to programs
  49. which were given special permission.
  50.  
  51. : >It
  52. : >just means that you can't pass pointers between processes and the
  53. : >machine becomes more stable.
  54.  
  55. : Unfortunately most parameters are passed by pointers. You do have
  56. : to change everything.
  57.  
  58. Old programs could use one address space and pass pointers as much as
  59. they want to. Maybe if A calls PutMsg() it gives the receiving process B
  60. the permission to read/write its memory. New programs could
  61. also use PutMsg() but they'd allocate the message from a special pool
  62. and the other task receives only read/write permission for this pool.
  63. The private memory of new programs wouldn't have to be in the global
  64. address space.
  65. Another difference between old and new programs could be that the memory
  66. of old programs must not be swapped while new programs can decide for
  67. each of their pools if it has MEMF_SWAP set or not.
  68.  
  69. Bernhard
  70.  
  71. PS.: #define MEMF_PUBLIC 0
  72.  
  73. --
  74.  
  75. _|_|_|_|_|_|_|_|_|_|_|_|_|_|_///_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
  76. _| Bernhard Fastenrath      ///  http://titan.cs.bonn.edu/~fasten/ :        _|
  77. _| fasten@cs.bonn.edu   \\\///   - XWorkbench 0.2 (Amiga Workbench for X11) _|
  78. _| fasten@shw.com        \XX/    - Ext2 filesystem 0.5b for AmigaDOS, 0.3   _|
  79. _|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
  80.  
  81. Hi, I'm not a signature virus. Why don't you just copy me into your signature?
  82.